package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 20210607  zaq  引入
 * asp_model
 * @author 
 */
@Data
public class AspModel implements Serializable {
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;
    private Integer mId;

    /**
     * 创建日期
     */
    private Integer mDate;

    /**
     * 创建时间
     */
    private Date mTime;

    /**
     * 用户ID
     */
    private Integer uId;

    /**
     * 快速添加 模板ID
     */
    private Integer kMId;

    private Boolean delete;

    private static final long serialVersionUID = 1L;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getmId() {
        return mId;
    }

    public void setmId(Integer mId) {
        this.mId = mId;
    }

    public Integer getmDate() {
        return mDate;
    }

    public void setmDate(Integer mDate) {
        this.mDate = mDate;
    }

    public Date getmTime() {
        return mTime;
    }

    public void setmTime(Date mTime) {
        this.mTime = mTime;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer getkMId() {
        return kMId;
    }

    public void setkMId(Integer kMId) {
        this.kMId = kMId;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspModel other = (AspModel) that;
        return (this.getmId() == null ? other.getmId() == null : this.getmId().equals(other.getmId()))
            && (this.getmDate() == null ? other.getmDate() == null : this.getmDate().equals(other.getmDate()))
            && (this.getmTime() == null ? other.getmTime() == null : this.getmTime().equals(other.getmTime()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getkMId() == null ? other.getkMId() == null : this.getkMId().equals(other.getkMId()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getmId() == null) ? 0 : getmId().hashCode());
        result = prime * result + ((getmDate() == null) ? 0 : getmDate().hashCode());
        result = prime * result + ((getmTime() == null) ? 0 : getmTime().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getkMId() == null) ? 0 : getkMId().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AspModel{" +
                "note='" + note + '\'' +
                ", code=" + code +
                ", mId=" + mId +
                ", mDate=" + mDate +
                ", mTime=" + mTime +
                ", uId=" + uId +
                ", kMId=" + kMId +
                ", delete=" + delete +
                '}';
    }
}